<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    首页
    <div>
        姓名：<span th:text="${name}"></span><br>
        年龄：<span th:text="${age}"></span>
        <span th:if="${age >= 18}">你已成年</span>
        <span th:if="${age < 18}">你是孩子</span>

        <hr>
        编号：<span th:text="${user.id}"></span>
        用户名：<span th:text="${user.name}"></span><br>
        生日：<span th:text="${user.birthday}"></span><br>
        电话：<span th:text="${user.phone}"></span>
    </div>

    <table border="1" width="60%">
        <thead><tr><th>编号</th><th>姓名</th><th>生日</th></tr></thead>

        <tbody>
            <tr th:each="user : ${userList}">
                <td th:text="${user.id}"></td>
                <td th:text="${user.name}"></td>
                <td th:text="${user.birthday}"></td>
            </tr>
        </tbody>
    </table>
    <div>
        <a th:each="i : ${#numbers.sequence(1,totalPage)}" th:text="${i}"
           style="margin-left: 10px" th:href="'javascript:alert('+${i}+')'"></a>
    </div>
</body>
</html>